package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.AccountCheckPayPwdTask.AccountCheckPayPwdRequest;
import com.smiier.skin.net.AccountCheckPayPwdTask.AccountCheckPayPwdResponse;
import com.smiier.skin.util.GlobalSettings;

public class AccountCheckPayPwdTask extends
		NetTask<AccountCheckPayPwdRequest, AccountCheckPayPwdResponse> {

	public static class AccountCheckPayPwdRequest extends ORequest {
		public String token;
		public String appname = Constant.APP_NAME;
		public String paypwd;
	}

	public static class AccountCheckPayPwdResponse extends OResponse {
		public String Res;
	}

	// -3001 尚未初始化交易密码
	// -3002 缺少交易密码参数
	// -3003 交易密码错误
	// -8000段位用户token相关问题
	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Account.CheckPayPwd";
		mRequestMethod = METHOD_POST;
	}

}
